DOCUMENT = talk
IMAGES = logo.eps cthulhu.eps

$(DOCUMENT).pdf : $(DOCUMENT).tex $(IMAGES)
	latexmk -pdfps $<

view : $(DOCUMENT).pdf
	mupdf $<

edit : 
	nvim $(DOCUMENT).tex

clean :
	latexmk -quiet -CA
	rm -rf $(DOCUMENT).bm $(IMAGES)

%.eps : %.svg
	inkscape --export-text-to-path --export-eps=$@ $<

%.eps : %.jpg
	convert $< $@
